/* You can add global styles to this file, and also import other style files */
// /* You can add global styles to this file, and also import other style files */
.special-width {
  width: 50%;
  padding-right: 12px;
}

.slideActive() {
  background-image: url('../assets/images/centaur/sider-bg.png');
  background-repeat: no-repeat;
  border-radius: 5px;
  margin: 0 10px;
  max-width: 218px;
  box-shadow: 0 4px 6px #afc8e0;
}

.sidebarTitle() {
  padding: 27px 16px;
  color: rgba(0, 0, 0, 0.45);
  border-top: 1px solid #f6f6f6;
  margin: 27px 0 0 0;
}

/* 自定义按钮样式 */
.cil__custom-btn__lightblue {
  background-color: #50c5e6;
  border-color: #50c5e6;
  color: #fff;
  font-size: 14px;
}

.cil__custom-btn__whiteblue {
  background-color: #fff;
  border-color: #50c5e6;
  color: #50c5e6;
  font-size: 14px;
}

.cil_custom-btn__orange {
  background: #ffae00;
  border: 2px solid #ffae00;
  border-radius: 18px;
  font-size: 14px;
  color: #fff;
}

.cil__custom-btn__search {
  width: 110px;
  height: 38px;
  font-size: 16px;
}

.cil__custom-btn__add-search {
  background-color: #fff;
  border-color: @primary-color;
  color: @primary-color;
  font-size: 16px;
}

/* 自定义输入框 */
.cil__input {
  border: 0;
  padding: 0;
  text-align: center;
  font-size: 15px;
  color: #070809;
  background: rgba(255, 255, 255, 0);
}

.cil__input:focus {
  outline: 0;
  color: #000;
  font-weight: bolder;
}

/* 自定义选择框 */
.cil__detail-custom-select {
  width: 60%;
  // min-width: 200px;
}

/* 详情页其他信息 label */
.cil__detail-rest-info--label {
  font-family: PingFang-SC-Bold;
  font-size: 14px;
  color: #999;
  letter-spacing: 0.4px;
  margin-top: 17px;
  margin-bottom: 7px;
}

/* 详情页渠道 */
.cil__rest-info-channel {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;

  /* 详情页其他信息渠道配置左侧 logo */
  .cil__rest-info-channel--left-logo {
    height: 100px;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    flex-direction: column;
    border-radius: 4px;
    margin-right: 10px;

    img {
      width: auto;
      height: 45%;
    }
  }

  .cil__rest-info-channel--right-columns {
    width: 100%;
  }
}

.cil__rest-info-channel-bottom-columns {
  margin-top: 10px;
}

/* 详情页 info-row 上下排列 */
.cil__info-item-blocks.bottom-columns {
  margin-top: 20px;
  // height: 130px;
}

/* 侧边栏样式覆盖 */
.sidebar-nav__selected {
  .slideActive() !important;
}

.sidebar-nav__item {
  border-left: 0 !important;
  height: 44px !important;
  margin: 0 10px !important;

  .sidebar-nav__item-link {
    display: flex;
  }
}

.sidebar-nav__group-title {
  font-size: 14px;
  font-family: PingFang-SC-Bold;
  font-weight: bold;
  color: rgba(121, 121, 121, 1);
  line-height: 20px;
}

.sidebar-nav__group-title:not(:first-child) {
  .sidebarTitle() !important;
}

.sidebar-nav__item-icon {
  font-size: 20px;
}

.alain-default__collapsed .sidebar-nav:not(.sidebar-nav__sub) .sidebar-nav__item-link {
  padding: 13px 16px !important;
}

/* 新增页面布局 */
.cil__base-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  .cil__top-image {
    width: 460px;
    height: 260px;
  }

  // 是否开通审核功能、是否提供报表控件
  .cil__condition-switch-block {
    width: 200px;
    height: 140px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px 0 rgba(227, 232, 239, 1);
    border-radius: 4px;
    border: 2px solid gray;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    .cil__condition-switch--label {
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC-Semibold;
      font-weight: 600;
      color: gray;
      line-height: 20px;
    }

    .cil__condition-switch--label.active {
      color: rgba(80, 197, 230, 1);
    }
  }

  .cil__condition-switch-block.active {
    border: 2px solid rgba(80, 197, 230, 1);
  }

  .cil__base-block--form {
    width: 80%;
  }
}

button.custom-btn {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;

  i {
    font-size: 25px;
  }
}

.btn-separator {
  margin: 0 8px 0 8px;
}

.btn-groups {
  display: inline-flex;
}

/* 详情页面操作icon */
.cil__detail-operate-icon {
  font-size: 30px;
  cursor: pointer;
}

/* 详情渠道新增 */
.cil__channel-add-block {
  margin-top: 20px;
  width: 140px;
  height: 100px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px 0 rgba(207, 217, 230, 1);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* 编辑详情页面popover */
.error-popover {
  .ant-popover-inner-content {
    color: red;
  }
}

/** 搜索栏样式   */
.ant-calendar-range-picker-input {
  width: 40% !important;
}

.ant-calendar-picker-input {
  padding: 4px 11px 4px 0 !important;
}

/** 差错操作表单 */
.cil__charge-back--operate {
  background: #fff;
  padding: 20px 32px;
  border-radius: 5px;
  min-width: 400px;
}

/* tab页可编辑的样式 */
.cil-thead {
  margin-top: 30px;
}

.cil_edit_rule {

  .ant-table-wrapper,
  .ant-table-fixed-header>.ant-table-content>.ant-table-scroll>.ant-table-body {
    background: #fff !important;
  }

  .cil_edit_table {
    background-color: #fff !important;
  }

  // padding: 30px;
  .ant-table-placeholder {
    display: none;
  }

  .ant-table-body {
    // margin-bottom: 60px;
    background-color: #fff !important;

    tr {
      height: 44px;
      margin-bottom: 10px !important;
      background: rgba(245, 247, 250, 1);
      border-radius: 4px;

      .ant-form-item-control {
        line-height: 0;
      }

      &:hover {
        td {
          background: rgba(245, 247, 250, 1) !important;
        }
      }

      td {
        padding: 8px !important;
        margin-bottom: 10px;
        border: none;

        &:hover {
          background: rgba(245, 247, 250, 1) !important;
        }

        input {
          text-align: center;
          border-radius: 3px;
          border: none;
          border: 1px #b7bac2 solid;

          &.readonly {
            background: rgba(245, 247, 250, 1) !important;
            border: none !important;
          }
        }
      }
    }
  }

  .ant-table-thead>tr>th {
    background-color: #fff !important;
    text-align: center;
    border-bottom: none !important;
  }
}

.cil_merchant {
  padding-left: 100px;

  .ant-checkbox-group {
    margin-bottom: 60px;
  }

  .ant-checkbox-wrapper {
    display: block;
    margin-left: 0;
    margin-bottom: 20px;
  }
}

.field-contronl {
  position: relative;

  .error {
    position: absolute;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

.first-td {
  width: 50px !important;
  text-align: center;
}

.special-td {
  width: 300px !important;
  text-align: center;
}

.special-two-td {
  width: 200px !important;
}

.cil_display_center {
  text-align: center !important;
}

/** 国际化图标 */
.label-and-icon {
  display: flex;

  .label {
    width: 25px;
    height: 25px;
    font-size: 18px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: rgba(24, 40, 66, 1);
    line-height: 25px;
    background-color: rgba(255, 255, 255, .5);
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
    ;
  }
}

.ant-calendar-date-input-wrap>.ant-calendar-input {
  pointer-events: none;
}
